package com.itianyu.blog.dao.beans;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "comment")
public class Comment implements Serializable {
	private static final long serialVersionUID = 1L;
   

	@Id
	@Column(name = "ID")
	private Long id;

	@Column(name = "ENTRY_ID")
	private Integer entryid;
	
	@Column(name = "ENTRY_TITLE")
	private String entrytitle;
	
	@Column(name = "USERNAME")
	private String username;
	
	@Column(name = "CONTENT")
	private String content;
	
	@Column(name = "CREATION_DATE")
	@Temporal(TemporalType.TIMESTAMP)
	private Date  creationDate;
    
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getEntryid() {
		return entryid;
	}

	public void setEntryid(Integer entryid) {
		this.entryid = entryid;
	}

	public String getEntrytitle() {
		return entrytitle;
	}

	public void setEntrytitle(String entrytitle) {
		this.entrytitle = entrytitle;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	
	
}
